/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package at.fhj.itm.metadata;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Seuchter
 */
public class MetadataUtil {

    @SuppressWarnings("unchecked")
	public static<T extends MetadataItem> List<T> copyMetadataList(List<T> src)
    {
        List<T> copyList = new ArrayList<T>();
        for(T item : src){
            copyList.add((T)item.copy());
        }
        
        return copyList;
    }

}
